import api from '../utils/api';

export async function create(param) {
    return api.post('/borrowReturn/create',{
        data: JSON.stringify(param),
    });
}

export async function remove(param) {
    return api.post('/borrowReturn/remove',{
        data: JSON.stringify(param),
    });
}

export async function edit(param) {
    return api.post('/borrowReturn/edit',{
        data: JSON.stringify(param),
    });
}

export async function qryList(param) {
    return api.post('/borrowReturn/queryBorrowReturnList',{
        data: JSON.stringify(param),
    });
}

export async function qryById(param) {
    return api.post('/borrowReturn/qryById',{
        data: JSON.stringify(param),
    });
}

export async function updateToBorrow(param) {
    return api.post('/borrowReturn/updateToBorrow',{
        data: JSON.stringify(param),
    });
}

export async function updateToReturn(param) {
    return api.post('/borrowReturn/updateToReturn',{
        data: JSON.stringify(param),
    });
}

export async function queryDetailById(param) {
    return api.post('/borrowReturn/queryDetailById',{
        data: JSON.stringify(param),
    });
}

export async function qryAssetById(param) {
    return api.post('/asset/qryAssetById', {
      data: JSON.stringify(param),
    });
  }

  export async function querAssetListByParam(param) {
    return api.post('/borrowReturn/querAssetListByParam',{
        data: JSON.stringify(param),
    });
}
export async function qryBorrowListById(param) {
    return api.post('/borrowReturn/qryBorrowListById',{
        data: JSON.stringify(param),
    });
}

